package com.ywu.common.dto;

import com.ywu.common.entity.PageInfo;
import lombok.Data;
import lombok.ToString;

import java.util.Objects;

/**
 * @ClassName CommonDto
 * @Description TODO
 * @Author GroundDemo
 * @Date 2024/2/28 23:05
 * @Version 1.0
 **/
@Data
@ToString
public class CommonDto {
    private PageInfo pageInfo;

    private String tenantId;

    public CommonDto() {
        if (Objects.isNull(pageInfo)) {
            pageInfo = new PageInfo(1, 10, 0);
        }
    }
}
